DEMO 1: An event is a block of code that has a specific task and must receive a signal to run.

We use a handler to tell the program what signal to listen for to run an event.

  • Click Run to see a the parts of an event.
  • Click the words Next Step on the stage to see what each line does.
  • Click Submit and Next to answer the questions about functions.

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)